package com.ra.landlord;

import java.util.List;

import org.springframework.stereotype.Service;

import com.googlecode.cswish.annotation.Rest;

import com.ra.util.Area;
import com.ra.util.AreaParser;

/**
 * 地址服务
 * 
 * @author colin
 * @date 2014年9月6日
 *
 */
@Service
public class AreaService {
	
	@Rest(simpleServiceName = "anonymity", type = "free")
	public List<Area> getChildArea(String areakey) {
		return AreaParser.getAreaInfo(areakey);
    }
	
	@Rest(simpleServiceName = "anonymity", type = "free")
	public String getAreaName(String areaCode) {
		return AreaParser.getAreaName(areaCode);
    }
}
